<%
    /**
     * 4List调用的导出成excel
     */
%>
<script>

    function toExcel()
    {
        <%
        if(((ValueListHandler)request.getAttribute("valueListHandler")).getList().size() > 0)
        {
          %>try
            {
                funcFrame.location.href = "<%= request.getContextPath()%>/common/List/2excel/ini.jsp?serviceURL=<%= request.getParameter("serviceURL")%>";
            }
            catch(error)
            {
                alert(error);
            }<%
        }
        else
        {
            %>
                alert("无记录可供导出");
            <%
        }%>
    }
</script>
